package com.zhw.mapper;

import com.zhw.pojo.entry.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from user where username=#{username} and password =#{password}")
    User check(User user);

    void update(User user);

    @Select("select username from user;")
    List<String> getUsername();


    @Select("select * from user where id=#{i}")
    User getByID(Long i);

    @Select("select * from user where username=#{assignMan}")
    User getByUsername(String assignMan);
}
